package cn.smile.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: MaoSuyu
 * @User：John
 * @Date: 2019/7/18
 * @Time: 16:38
 * @Description: No Description
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.TYPE})
public @interface CustomAnnotation {

    /**
     * 姓名
     * @return
     */
    String name() default "默认";

    /**
     * 年龄
     * @return
     */
    int age() default 0;

    /**
     * 生日
     * @return
     */
    String birthday() default "1970-00-00";
}
